<%@ page import="Usere contentType="text/html;charset=UTF-8" language="java" %>
<%
    User user = (User) session.getAttribute("user");
    if(user == null){
%>
    <div>
        <a href="pages/user/login.jsp">登录</a> |
        <a href="pages/user/regist.jsp">注册</a> &nbsp;&nbsp;
        <a href="pages/cart/cart.jsp">购物车</a>
        <a href="pages/manager/manager.jsp">后台管理</a>
    </div>
<%
    }else{
%>
    <div>
        <span>欢迎<span class="um_span"><%=user.getUsername()%></span>光临尚硅谷书城</span>
        <a href="pages/cart/cart.jsp">购物车</a>
        <a href="pages/order/order.jsp">我的订单</a>
        <a href="">注销</a>&nbsp;&nbsp;
        <a href="">返回</a>
    </div>
<%
    }
%>


